#ifndef CTip_H
#define CTip_H

#include <QObject>
#include "cobject.h"
namespace cooking {

class CTip : public CObject
{
    Q_OBJECT
//    Q_PROPERTY(int id READ id WRITE setId NOTIFY idChanged)
    Q_PROPERTY(int recipeId READ recipeId WRITE setRecipeId NOTIFY recipeIdChanged)
    Q_PROPERTY(int number READ number WRITE setNumber NOTIFY numberChanged)
    Q_PROPERTY(QString description READ description WRITE setDescription NOTIFY descriptionChanged)
public:
    explicit CTip(QObject *parent = 0);
//    int id();
//    void setId(int id);

    int recipeId();
    void setRecipeId(int id);

    int number();
    void setNumber(int number);

    QString description();
    void setDescription(QString description);
signals:
    void recipeIdChanged();
    void numberChanged();
    void descriptionChanged();

public slots:
private:
    int m_recipe_id;
    int m_number;
    QString m_description;
};
} // namespace cooking
#endif // CTip_H
